<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title><#if op??><#if op="view">查看<#elseif op="edit">修改<#elseif op="copy">复制</#if><#else>新增</#if>商品</title>
	<link href="/css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
	<div class="place">
    	<span>位置：</span>
	    <ul class="placeul"><li><a href="/index.html">首页</a></li><li><#if op??><#if op="view">查看<#elseif op="edit">修改<#elseif op="copy">复制</#if><#else>新增</#if>商品</li></ul>
    </div>
    <br><br>
	<form id="addWareForm" action="/ware/info/save.html" method="post">
		<input name="id" type="hidden" value="${(info.id)!""}">
		<input id="file" name="file" type="file" style="display: none;">
	    <ul class="forminfo forminfo-2col">
		    <li class="width-100">
		    	<label>商品名称：</label>
		    	<input name="name" class="scinput input-lg" value="${(info.name)!""}" <#if op?? && op="view">disabled=true</#if> autocomplete="off" 
		    		data-easyform="length:2 32;char-chinese;real-time;" data-message="名称为2~32位的中英文、数字、下划线或中文符号" />
		    	<i><font class="font-red">*</font>商品名称为2~32位的中英文、数字、下划线或中文符号</i>
		    </li>
		    <li>
		    	<label>商品分类：</label>
				<input id="categoryName" name="categoryName" type="hidden" value="${(info.catName)!""}">
		    	<select class="select-form" id="categoryId" name="categoryId"  <#if op?? && op="view">disabled=true</#if> >
				    <#if categoryAll??><#list categoryAll as item>
				    <option value=${item.id} <#if (info.categoryId)?? && (info.categoryId)?number == item.id>selected="selected"</#if>>${item.name}</option>
				    </#list></#if>
			    </select>
		    	<i><font class="font-red">*</font><a href="/ware/category/add.html">新增分类</a></i>
		    </li>
		    <li>
		    	<label>所属品牌：</label>
				<input id="brandName" name="brandName" type="hidden" value="<#if (info.brandName)??>${(info.brandName)!""}<#elseif brandAll?if_exists && brandAll?size gt 0>${brandAll[0].name}</#if>">
		    	<select class="select-form" id="brandId" name="brandId"  <#if op?? && op="view">disabled=true</#if>>
				    <#if brandAll??><#list brandAll as item>
				    <option value=${item.id} <#if (info.brandId)?? && (info.brandId)?number == item.id>selected="selected"</#if>>${item.name}</option>
				    </#list></#if>
			    </select>
		    	<i><font class="font-red">*</font><a href="/ware/brand/add.html">新增品牌</a></i>
		    </li>
		    <li>
		    	<label>原&emsp;&emsp;价：</label>
		    	<input id="priceOriginal" name="priceOriginal" class="scinput input-lg" value="${(info.priceOriginal)!""}" <#if op?? && op="view">disabled=true</#if> autocomplete="off" 
		    		data-easyform="money;real-time;" data-message="原价不能为空或格式不对，例：45.78" />
		    	<i><font class="font-red">*</font>商品进价，最多保留两位小数</i>
		    </li>
		    <li>
		    	<label>优&ensp;惠&ensp;价：</label>
		    	<input id="pricePromotional" name="pricePromotional" class="scinput input-lg" value="${(info.pricePromotional)!""}" <#if op?? && op="view">disabled=true</#if> autocomplete="off" 
		    		data-easyform="money;real-time;" data-message="优惠价不能为空或格式不对，例：45.78" />
		    	<i><font class="font-red">*</font>结算时以此价格为准，最多保留两位小数</i>
		    </li>
		    <li>
		    	<label>市&ensp;场&ensp;价：</label>
		    	<input name="priceMarket" class="scinput input-lg" value="${(info.priceMarket)!""}" <#if op?? && op="view">disabled=true</#if> autocomplete="off" 
		    		data-easyform="null;money;real-time;" data-message="市场价格式不对，例：45.78" />
		    	<i><font class="font-red">*</font>只是显示使用，最多保留两位小数</i>
		    </li>
		    <li>
		    	<label>购买积分：</label>
		    	<input id="scoreBuy" name="scoreBuy" class="scinput input-lg" value="${(info.scoreBuy)!0}" <#if op?? && op="view">disabled=true</#if> autocomplete="off" 
		    		data-easyform="uint:0;real-time;" data-message="积分格式不对，例：58" />
		    	<i><font class="font-red">*</font>用户购买商品后获得的积分，整数</i>
		    </li>
		    <li>
		    	<label>推广积分：</label>
		    	<input id="scorePromote" name="scorePromote" class="scinput input-lg" value="${(info.scorePromote)!0}" <#if op?? && op="view">disabled=true</#if> autocomplete="off" 
		    		data-easyform="uint:0;real-time;" data-message="积分格式不对，例：58" />
		    	<i><font class="font-red">*</font>用户购买商品后，推广员获得的积分。详见<a href="#" target="_blank">积分说明</a></i>
		    </li>
		    <li>
		    	<label>总&ensp;积&ensp;分：</label>
		    	<input id="scoreTotal" name="scoreTotal" class="scinput input-lg" value="${(info.scoreTotal)!0}" readonly=true autocomplete="off" data-easyform="null;" />
		    	<i><font class="font-red">*</font>总赠送积分 = 购买积分 + 推广积分</i>
		    </li>
		    <li>
		    	<label>库存数量：</label>
		    	<input name="numberInventory" class="scinput input-lg" value="${(info.numberInventory)!""}" <#if op?? && op="view">disabled=true</#if> autocomplete="off" 
		    		data-easyform="uint:0;real-time;" data-message="库存格式不对，例：99" />
		    	<i><font class="font-red">*</font>小于1将不能添加到购物车</i>
		    </li>
		    <li>
		    	<label>产品规格：</label>
		    	<input name="specifications" class="scinput input-lg" value="${(info.specifications)!""}" <#if op?? && op="view">disabled=true</#if> autocomplete="off" data-easyform="null;" />
		    	<i>酒水：净含量</i>
		    </li>
		    <li>
		    	<label>计量单位：</label>
		    	<select class="select-form" id="unitName" name="unitName"  <#if op?? && op="view">disabled=true</#if>>
				    <option value="瓶" <#if (info.unitName)?? && (info.unitName) == "瓶">selected="selected"</#if>>瓶</option>
				    <option value="件" <#if (info.unitName)?? && (info.unitName) == "件">selected="selected"</#if>>件</option>
				    <option value="箱" <#if (info.unitName)?? && (info.unitName) == "箱">selected="selected"</#if>>件</option>
			    </select>
		    	<i><font class="font-red">*</font></i>
		    </li>
		    <li>
		    	<label>是否热卖：</label>
		    	<input name="hot" type="radio" class="radio" value="1" <#if (info.hot)?? && (info.hot) == 1>checked="checked"</#if>/>&ensp;是&emsp;
		    	<input name="hot" type="radio" class="radio" value="2" <#if (info.hot)?? && (info.hot) == 1><#else>checked="checked"</#if>/>&ensp;否
		    </li>
		    <li class="width-100">
		    	<label>商品图片：</label>
		    	<input name="imageThumb" id="imageThumb" type="hidden" value="${(info.imageThumb)!""}"/>
		    	<input name="imageMain" id="imageMain" type="hidden" value="${(info.imageMain)!""}" 
		    		data-easyform="real-time;" data-message="商品主图不能为空" />
		    	<#if info?? && info.imageThumb??>
		    	<#list info.imageThumb?split(",") as item>
		    	<div class="img_show_outer img_show_wapper">
		    		<img src="${(item)!"/images/no_pic.png"}" border="0" />
		    		 <#if op?? && op="edit">
		    		<span class="img_show_cover img_show_cover_l">删除</span>
		    		<span class="img_show_cover img_show_cover_r" <#if ((info.imageMain)!"")!=item>name="setMain">设为<#else>name="isMain"></#if>主图</span>
		    		<#elseif ((info.imageMain)!"")==item>
		    		<span class="img_show_cover" >主图</span>
		    		</#if>
		    	</div>
		    	</#list>
		    	</#if>
		    	<#if op?? && op="view">
		    	<#else>
		    	<div class="img_show_outer img_show_wapper img_upload" id="uploadBtnOuter">
		    		<img src="/images/loading_1.gif" id="loadingImg" style="display: none; width: 32px; min-height: 32px; margin-top: 20px;">
		    		<span class="img_show_cover" id="uploadingBtn" style="display: none;">正在上传...</span>
		    		<img src="/images/icon_add.png" id="addImg">
		    		<span class="img_show_cover" id="uploadBtn">上传</span>
		    	</div>
		    	</#if>
		    </li>
		    <li>
		    	<label>商品条码：</label>
		    	<input name="barcode" class="scinput input-lg" value="${(info.barcode)!""}" <#if op?? && op="view">disabled=true</#if> autocomplete="off" data-easyform="null;" />
		    	<i>商品包装条码</i>
		    </li>
		    <li>
		    	<label>商品货号：</label>
		    	<input name="code" class="scinput input-lg" value="${(info.code)!""}" <#if op?? && op="view">disabled=true</#if> autocomplete="off" data-easyform="null;" />
		    </li>
		    <li>
		    	<label>配&ensp;料&ensp;表：</label>
		    	<input name="batching" class="scinput input-lg" value="${(info.batching)!""}" <#if op?? && op="view">disabled=true</#if> autocomplete="off" data-easyform="null;" />
		    	<i>商品配料，如小麦、玉米、水等</i>
		    </li>
		    <li>
		    	<label>口&emsp;&emsp;味：</label>
		    	<input name="flavor" class="scinput input-lg" value="${(info.flavor)!""}" <#if op?? && op="view">disabled=true</#if> autocomplete="off" data-easyform="null;" />
		    	<i>商品口味：清香、酱香型等</i>
		    </li>
		    <li>
		    	<label>生产日期：</label>
		    	<input id="dateManufacture" name="dateManufacture" class="scinput input-lg" value="${(info.dateManufacture)!""}" <#if op?? && op="view">disabled=true</#if> autocomplete="off" 
		    		data-easyform="null;date;real-time;" data-message="日期格式不对，例：2018-02-12" />
		    	<i>格式：2018-02-12</i>
		    </li>
		    <li>
		    	<label>保&ensp;质&ensp;期：</label>
		    	<input name="shelfLife" class="scinput input-lg" value="${(info.shelfLife)!""}" <#if op?? && op="view">disabled=true</#if> autocomplete="off" data-easyform="null;" />
		    	<i>如两年、六个月</i>
		    </li>
		    <li>
		    	<label>生产厂家：</label>
		    	<input name="manufacturer" class="scinput input-lg" value="${(info.manufacturer)!""}" <#if op?? && op="view">disabled=true</#if> autocomplete="off" data-easyform="null;" />
		    </li>
		    <li>
		    	<label>厂家地址：</label>
		    	<input name="manufacturerAddress" class="scinput input-lg" value="${(info.manufacturerAddress)!""}" <#if op?? && op="view">disabled=true</#if> autocomplete="off" data-easyform="null;" />
		    </li>
		    <li>
		    	<label>产&emsp;&emsp;地：</label>
		    	<input name="producingArea" class="scinput input-lg" value="${(info.producingArea)!""}" <#if op?? && op="view">disabled=true</#if> autocomplete="off" data-easyform="null;" />
		    </li>
		    <li>
		    	<label>生产许可：</label>
		    	<input name="productionLicense" class="scinput input-lg" value="${(info.productionLicense)!""}" <#if op?? && op="view">disabled=true</#if> autocomplete="off" data-easyform="null;" />
		    </li>
		    <li>
		    	<label>发&ensp;货&ensp;地：</label>
		    	<input name="sendAddress" class="scinput input-lg" value="${(info.sendAddress)!""}" <#if op?? && op="view">disabled=true</#if> autocomplete="off" data-easyform="null;" />
		    </li>
		    <li>
		    	<label>快&ensp;递&ensp;费：</label>
		    	<input name="expressFee" class="scinput input-lg" value="${(info.expressFee)!""}" <#if op?? && op="view">disabled=true</#if> autocomplete="off" data-easyform="null;" />
		    	<i>填写后将纳入结算</i>
		    </li>
		    <li>
		    	<label>包装情况：</label>
		    	<input name="pkg" class="scinput input-lg" value="${(info.pkg)!""}" <#if op?? && op="view">disabled=true</#if> autocomplete="off" data-easyform="null;" />
		    	<i>如礼盒装、简包装</i>
		    </li>
		    <li>
		    	<label>包装方式：</label>
		    	<input name="methodPacking" class="scinput input-lg" value="${(info.methodPacking)!""}" <#if op?? && op="view">disabled=true</#if> autocomplete="off" data-easyform="null;" />
		    	<i>如木箱，每箱6瓶</i>
		    </li>
		    <li>
		    	<label>使用方式：</label>
		    	<input name="methodUse" class="scinput input-lg" value="${(info.methodUse)!""}" <#if op?? && op="view">disabled=true</#if> autocomplete="off" data-easyform="null;" />
		    </li>
		    <li>
		    	<label>存储方式：</label>
		    	<input name="methodStorage" class="scinput input-lg" value="${(info.methodStorage)!""}" <#if op?? && op="view">disabled=true</#if> autocomplete="off" data-easyform="null;" />
		    </li>
		    <li>
		    	<label>执行标准：</label>
		    	<input name="performStandard" class="scinput input-lg" value="${(info.performStandard)!""}" <#if op?? && op="view">disabled=true</#if> autocomplete="off" data-easyform="null;" />
		    </li>
		    <li class="width-100">
		    	<label>备注摘要：</label>
		    	<input name="summary" class="scinput input-lg" value="${(info.summary)!""}" <#if op?? && op="view">disabled=true</#if> autocomplete="off" 
		    	data-easyform="null;"  />
		    	<i>显示在商品名称下</i>
		    </li>
		    <li class="width-100" style="margin-bottom: 70px; ">
		    	<label>商品详情：</label>
		    	<script id="description" name="description" type="text/plain" style="height:400px; width:88%; padding-left: 65px;" <#if op?? && op="view">disabled=true</#if> autocomplete="off" >${(info.description)!""}</script>
		    	<i><font class="font-red">*</font></i>
		    </li>
		</ul>
		<div class="fix_bottom">
	    	<input id="submitBtn" type="submit" class="btn" value="提交"/>&emsp;
	    	<input id="cancelBtn" type="button" class="btn" value="返回"/>
	    </div>
	</form>
	<div class="fix-bottom-float">&nbsp;</div>
</body>
<script type="text/javascript" >
	var score_give_rate = ${(score_give_rate)!0};
	var score_promote_rate = ${(score_promote_rate)!0};
	var score_exchange_rate = ${(score_exchange_rate)!0};
</script>
<script type="text/javascript" src="/js/jquery-1.10.1.min.js"></script>
<link href="/js/ext/easyform/easyform.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/js/ext/easyform/easyform.js"></script>
<script type="text/javascript" src="/js/ext/ajaxfileupload.js"></script>
<script type="text/javascript" src="/js/ext/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="/js/ext/ueditor/ueditor.all.js"></script>
<link href="/js/ext/timeChoice/borain-timeChoice.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/js/ext/timeChoice/borain-timeChoice.js"></script>
<script type="text/javascript" src="/js/commonAdd.js"></script>
<script type="text/javascript" src="/js/biz/wareInfoAdd.js"></script>
</html>